import main from '@/pages/index'
export const routers = [
    {
        path: '/',
        component: main,
        meta: {
            title: '首页',
            icon: 'uc-menu-icon-index',
        },
        children: [
            {
                path: '/',
                name: 'index',
                meta: {
                    title: '大学生活动主办数据',
                },
                component: resolve => {
                    require(['@/pages/index/index.vue'], resolve);
                }
            },
            {
                path: '/hostData',
                name: 'hostData',
                meta: {
                    title: '大学生活动参与数据',
                },
                component: resolve => {
                    require(['@/pages/index/hostData.vue'], resolve);
                }
            },
            {
                path: '/realTimeData',
                name: 'realTimeData',
                meta: {
                    title:'大学生活动实时数据'
                },
                component: resolve => {
                    require(['@/pages/index/realTimeData.vue'], resolve);
                }
            },
            {
                path: '/coreLiteracyData',
                name: 'coreLiteracyData',
                meta: {
                    title:'大学生活动核心素养'
                },
                component: resolve => {
                    require(['@/pages/index/coreLiteracyData.vue'], resolve)
                }
            },
            {
                path: '/luggageSorting',
                name: 'luggageSorting',
                meta: {
                    title:'行李分拣'
                },
                component: resolve => {
                    require(['@/pages/index/luggageSorting.vue'], resolve)
                }
            },
        ]
    }
]
export default [
    ...routers,
]